/**
 * 
 */
package stationGUI;

import java.awt.Dimension;
import java.awt.Font;

import javax.swing.JPanel;
import javax.swing.JTextArea;

/**
 * @author Owner
 *
 */
public class ColorChooserCompositeScreen extends JPanel {
  /**
   * 
   */
  private static final long serialVersionUID = 1L;
  
  
  public static final Font FONT = new Font("Times New Roman",Font.BOLD,24);
  public static final Font FONT2 = new Font("Times New Roman",Font.BOLD,32);
  public static final String x="<html>Your goal: Choose a color that none of your neighbors have. When everyone in the system achieves this goal, the problem will be solved.</html>";
  public static final String y="<html><b></b>Your current color is <b><u>blue.</html>";  
  public static final String z="Click below if you wish to choose a different color.";
  public ColorChooserCompositeScreen(ClientNode n) {
    //super(new FlowLayout());
    setBackground(Station.BACKGROUND_COLOR);
    //ColorChooserScreen c=new ColorChooserScreen(n);
    
    
    JPanel textPanel=new JPanel();
    System.out.println(textPanel.getWidth()+"     "+textPanel.getHeight());
    textPanel.setSize(300,100);    
    System.out.println(textPanel.getWidth()+"     "+textPanel.getHeight());
    
    
    JTextArea t = new JTextArea();
    t.setFont(FONT);
    t.setEditable(false);

    System.out.println(t.getWidth()+"     "+t.getHeight());
    textPanel.add(t);
    System.out.println(t.getWidth()+"     "+t.getHeight());
    
    System.out.println(t.getWidth()+"     "+t.getHeight());
    t.setSize(new Dimension(100,500));
    System.out.println(t.getWidth()+"     "+t.getHeight());
    t.setText(x);
    add(textPanel);
    
    
    
    //setMaximumSize(c.getSize());
    
    //t.setMaximumSize(c.getSize());
    //add(c);
   /* JLabel u = new JLabel();
    JTextPane v = new JTextPane();
    add(u);
    u.setText(y);
    v.setFont(FONT2);
    add(v);
    v.setText(z);
    
    JLabel label = new JLabel();
    add(label);
    label.setLayout(new BorderLayout()) ;
    JTextPane pane = new JTextPane();
    pane.setBackground(label.getBackground());
//     or try making it opaque
    pane.setText("long textdsal;kgnhsadfgnhj;lasd ;oa ;arej g;asj dg;lsad ;nhsa;d ha;sld hg;lasd  here");
    label.add(pane,BorderLayout.CENTER);
    
    
    */
  }
  
}
